<template>
  <a-card :title="t('视图内容(sql)')" size="small">
    <manaco-editor
      v-model:value="modelRef.viewContent"
      :height="298"
      language="sql"
    ></manaco-editor>
  </a-card>
</template>
<script lang="ts" setup>
import { inject } from "vue";
import { MODEL_REF } from "..";
import type { ViewParams } from "@/api/low-code/view/typing";
import ManacoEditor from "@/components/monaco-editor/index.vue";
import { useI18n } from "vue-i18n";
const { t } = useI18n();
const modelRef = inject<ViewParams>(MODEL_REF);
</script>
<style lang="less" scoped>
.coder-editor {
  height: 296px;
}
</style>
